<input type="text" id="passwd" style="width:20px; -webkit-text-security:disc;">

<script>
    document.getElementById("passwd").focus();
    eventSender.keyDown('a');
</script>